# -*- coding:utf-8 -*-

class Battery():
    def __init__(self, battery_size=70):
        self.battery_size = battery_size

    def describe_battery(self):
        print('\nThis car has a ' + str(self.battery_size) + '-KWh battery.')
    
    def get_range(self):
        if self.battery_size == 70:
            range = 240
        elif self.battery_size == 100:
            range = 400
        elif self.battery_size == 85:
            range = 270
        
        message = "\nThis car can go approximately " + str(range)
        message += " miles on a full charge."

        print(message)
    
    def upgrade_battery(self):
        if self.battery_size < 85:
            self.battery_size = 85
    